package juc_12_funtionnal;

import java.util.function.Consumer;
import java.util.function.Predicate;

public class Demo01 {

    public static void main(String[] args) {
        Predicate<String> predicate = new Predicate<String>() {
            @Override
            public boolean test(String s) {
                return s.isEmpty();
            }
        };

        System.out.println(predicate.test("123"));
    }
}

class FunctionalDemo {
    public <T> void test01(Consumer<T> consumer) {

    }

}
